<style>
body{
padding:0px;
margin:0px;
}
</style>
<script type="text/javascript" src="swfobject.js"></script>
<script>
function check()
{
	if(swfobject.hasFlashPlayerVersion("1"))
	{
		
		document.getElementById('show').innerHTML = '<object width="480" height="360"><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/<?=$_GET['id']?>?version=3&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="480" height="360" allowscriptaccess="always" allowfullscreen="true"></embed></object>';
	}
	else
	{
		document.getElementById('show').innerHTML = '<iframe width="480" height="360" src="//www.youtube.com/embed/<? echo $_GET['id']; ?>?rel=0" frameborder="0" allowfullscreen></iframe>';
	}
}

</script>
<body onload="check()">
<div id="show">
abc
</div>
</body>
